/**
 * Copyright (C) 2018-2022
 * All rights reserved, Designed By www.dynread.com
 * 注意：
 * 本软件为www.dynread.com开发研制，项目使用请保留此说明
 */
package com.dynread.mall.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dynread.mall.entity.GoodsSpu;

/**
 * spu商品
 *
 * @author drinvay
 * @date 2022/5/6 13:17
 */
public interface GoodsSpuService extends IService<GoodsSpu> {

	IPage<GoodsSpu> page1(IPage<GoodsSpu> page, GoodsSpu goodsSpu);

	/**
	 * 新增商品
	 *
	 * @param entity
	 * @return boolean
	 * @author drinvay
	 * @date 2022/5/6 11:04
	 */
	boolean add(GoodsSpu entity);

	/**
	 * 修改商品
	 *
	 * @param entity
	 * @return boolean
	 * @author drinvay
	 * @date 2022/5/6 11:05
	 */
	boolean modify(GoodsSpu entity);

	/**
	 * 更新上下架状态
	 *
	 * @param shelf
	 * @param ids
	 * @return boolean
	 * @author drinvay
	 * @date 2022/5/6 12:11
	 */
	boolean updateShelfStatus(String shelf, String ids);

	GoodsSpu getById1(String id);

	GoodsSpu getById2(String id);

}
